#include <stdlib.h>		// getenv requests, lack will cause a core dump
#include "config.h"
#include <stdio.h>
/* default value */
struct config g_config = {
1,			// database NOT init
0,			// server socket
{0},		// web root
{0}			// platform token
};

int config()
{
#ifdef WIN32
	sprintf((char *)g_config.platform, "%s", "WIN32");
	sprintf((char *)g_config.bs_home, "%s","C:\\git\\universe-one\\BS");
#elif (defined LINUX)
	sprintf((char *)g_config.platform, "%s","LUNIX");
	sprintf((char *)g_config.bs_home, "%s", getenv("BS_HOME"));
#else
#error "platform not sepe..."
#endif
	return 0;
}